import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import product from '@/store/modules/product'
import adv from './modules/adv'
import cart from './modules/cart'
import user from './modules/user'
import order from './modules/order'
import payment from './modules/payment'
Vue.use(Vuex)
const store = new Vuex.Store({
  plugins: [
    createPersistedState({
      key: 'zhaizijing',
    }),
  ],
  modules: {
    product,
    adv,
    cart,
    user,
    order,
    payment,
  },
})
export default store
